package GenericsDemo2;

import java.util.ArrayList;

public class ListUtil {
    private ListUtil(){}

    //定义一个静态泛型方法
    public static<E> void addall(ArrayList list,E...e){
        for (E element: e){
            list.add(element);
        }

    }
}
